<%--
  Created by IntelliJ IDEA.
  User: 陈博
  Date: 2024/10/9
  Time: 11:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%request.setCharacterEncoding("UTF-8");%>
<jsp:useBean id="ps" class="com.example.chapter5.javaBeanSamples.person" scope="page"></jsp:useBean>
<jsp:setProperty name="ps" property="age"></jsp:setProperty>
姓名：<jsp:getProperty property="name" name="ps"/><BR>
性别：<jsp:getProperty property="sex" name="ps"/><BR>
年龄：<jsp:getProperty property="age" name="ps"/><BR>
</body>
</html>
